<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Login </title>
    </h:head>
    <h:body>
        <h:form id="formLogin">
            <p:panelGrid id="pnlLogin" columns="2">
                <f:facet name="header">  
                    Login Beldecor  
                </f:facet>  
                <h:outputLabel for="loginLabel" value="Login: *" />  
                <p:inputText id="login" required="true"  value="#{autenticacaoBean.login}"/>

                <h:outputLabel for="senhaLabel" value="Senha: *" />  
                <p:password id="senha" value="#{autenticacaoBean.password}" />  
                <f:facet name="footer">  
                    <h:commandButton id="botao" action="#{autenticacaoBean.doLogin}" value="Entrar"/>
                </f:facet>  
            </p:panelGrid>
        </h:form>
    </h:body>
</html>